import request from '../util/request'
// callbackUrl:微信授权之后的回调地址
export  function getCode(callbackUrl:string){
    return  request.get('wechat/auth',{
         params:{
             authCallbackUrl:callbackUrl
         }
     })
 }
 // 获取token
 export function getUserInfo(code:string){
     return  request.get('wechat/auth/user/info',{
         params:{
             code:code
         }
     })
 }